<?php 
$link = mysqli_connect("localhost","root","root","2113");
$pid=$_POST['pid'];
$uid=$_POST['uid'];
$unm=$_POST['num'];
$sql = "INSERT INTO product (pid,uid,num) VALUES ('$pid','$uid','$unm')";
$res =  mysqli_query($link,$sql);
if(!empty($res)){
	$arr['status'] = 1;
	$arr['info'] = "添加成功";
}else{
	$arr['status'] = 0;
	$arr['info'] = "添加失败";
}
echo json_encode($arr);
?>